'use strict'
//建模建表
var db = require('../db');
var Sequelize = require('sequelize');

var job = db.define('Job', {
    //attributes
    JobName: { //职位名
        type: Sequelize.STRING,
        allowNull: false
    },
    CompanyName: { //公司名
        type: Sequelize.STRING,
        allowNull: false
    },
    WorkPlace: { //工作地点P
        type: Sequelize.STRING,
        allowNull: false
    },
    Pay: { //薪资
        type: Sequelize.STRING,
        allowNull: false
    },
    WorkTime: { //工作时间
        type: Sequelize.STRING,
        allowNull: false
    }

}, {
    //options
    timestamps: true
})

module.exports = job